package com.sky.mapper;

import com.sky.aop.AutoFill;
import com.sky.entity.Dish;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface SetmealDishMapper {
    //@AutoFill(OperationType.INSERT)
    void insert(List<SetmealDish> setmealDishList);

    void delete(ArrayList<Long> ids);

    List<Dish> selectCloseDishesFromSetmeal(Long id);

    List<Long> selectSetmealIdsContainingClosedDish(Long id);

    ArrayList<Long> selectOpenSetmeal(Long[] ids);
}